﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using WebApiV2.Domain;
using WebApiV2.Domain.Entity;

namespace WebApiV2.Data
{
    public class DbSchoolContext : DbContext
    {
        public DbSchoolContext()
        {

        }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=.;database=School;uid=sa;pwd=123456");
        }

        public DbSet<Student> Students { get; set; }

        public DbSet<School> Schools { get; set; }

        public DbSet<Collge> Collges { get; set; }

        public DbSet<Logs> Logs { get; set; }
    }
}
